
using Infrastructure.Extensions;
using ZR.Model.Enums;

namespace ZR.Model.BaseFrame.Entity
{
    /// <summary>
    /// 公司
    /// </summary>
    public class CompanyEntityBase
    {
        /// <summary>
        /// 公司标识
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
        public long CompanyId { get; set; }

        /// <summary>
        /// 上级公司
        /// </summary>
        public long PaCompanyId { get; set; }

        /// <summary>
        /// 公司名
        /// </summary>
        public string CompanyName { get; set; }= string.Empty;

        /// <summary>
        /// 公司简称
        /// </summary>
        public string CompanyAbbr { get; set; }= string.Empty;

        /// <summary>
        /// 公司编号
        /// </summary>
        public string CompanyNo { get; set; }= string.Empty;

        /// <summary>
        /// 所属行业
        /// </summary>
        public string BelongIndustry { get; set; }= string.Empty;

        /// <summary>
        /// 负责人
        /// </summary>
        public string Manager { get; set; }= string.Empty;

        /// <summary>
        /// 电话
        /// </summary>
        public string Tel { get; set; }= string.Empty;

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }= string.Empty;

        /// <summary>
        /// 传真
        /// </summary>
        public string Fax { get; set; }= string.Empty;

        /// <summary>
        /// 地址
        /// </summary>
        public string Addr { get; set; }= string.Empty;

        /// <summary>
        /// 邮编
        /// </summary>
        public string Zip { get; set; }= string.Empty;

        /// <summary>
        /// 公司网址
        /// </summary>
        public string CompanyUrl { get; set; }= string.Empty;

        /// <summary>
        /// 成立时间
        /// </summary>
        public DateTime? SetTime { get; set; }

        /// <summary>
        /// 经营范围
        /// </summary>
        public string Runscope { get; set; }= string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }= string.Empty;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string Creater { get; set; }= string.Empty;

        /// <summary>
        /// 创建人标识
        /// </summary>
        public long CreaterId { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifyTime { get; set; }

        /// <summary>
        /// 修改人
        /// </summary>
        public string Modifier { get; set; }

        /// <summary>
        /// 修改人标识
        /// </summary>
        public long? ModifierId { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string StateCode { get; set; } = DataStateEnum.Enabled.ToEnumCode();

        /// <summary>
        /// 公司Id路径
        /// </summary>
        public string CompanyIdPath { get; set; }

    }
}